local skel = fk.CreateSkill{
  name = "kpaII__kanjuren",
}

Fk:loadTranslationTable{
  ["kpaII__kanjuren"] = "看!巨人",
  [":kpaII__kanjuren"] = "出牌阶段限一次，你可以令一名其他角色展示手牌中的所有【闪】，"..
  "然后你视为对其使用等量无视防具的【杀】。",

  ["#kpaII__kanjuren"] = "看!巨人：你可以令一名其他角色展示手牌中的所有【闪】",

  ["$kpaII__kanjuren1"] = "Hold there, foul monster!",
  ["$kpaII__kanjuren2"] = "Surrender!",

}

skel:addEffect("active", {
  prompt = "#kpaII__kanjuren",
  max_phase_use_time = 1,
  card_num = 0,
  target_num = 1,
  can_use = function (self, player)
    return player:usedEffectTimes(skel.name, Player.HistoryPhase) < 1
  end,
  card_filter = Util.FalseFunc,
  target_filter = function(self, player, to_select, selected, selected_cards)
    return #selected == 0 and to_select ~= player
  end,
  on_use = function(self, room, effect)
    local player = effect.from
    local target = effect.tos[1]
    if target:isKongcheng() then return end
    local cards = {}
    for _,c in ipairs(target:getCardIds(Player.Hand)) do
      Fk:filterCard(c,target)--过视锁技
      local card = Fk:getCardById(c)
      if card.name == "jink" then
        table.insertIfNeed(cards,c)
      end
    end
    if #cards == 0 then return end
    room:showCards(cards)
    for i = 1,#cards do
      local usecard = Fk:cloneCard("slash")
      if target.dead or not player:canUseTo(usecard,target,{ bypass_times = true, bypass_distances = true }) then return end
        usecard.skillName = skel.name
        room:useCard({
          from = player,
          card = usecard,
          tos = {target},
        })
    end
  end,
})

skel:addEffect(fk.TargetSpecified, {
  can_refresh = function (self, event, target, player, data)
    return player == data.to and table.contains(data.card.skillNames, skel.name) and not player.dead
  end,
  on_refresh = function (self, event, target, player, data)
    data.to:addQinggangTag(data)
  end
})

return skel